﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MsForgeReboot.Framework.Entities {
    public class Membership {


        public int UserId { get; set; }

        public Nullable<DateTime> CreateDate { get; set; }

        [StringLength(128)]
        public string ConfirmationToken { get; set; }

        public bool IsConfirmed { get; set; }

        public Nullable<DateTime> LastPasswordFailureDate { get; set; }

        public int PasswordFailuresSinceLastSuccess { get; set; }

        [Required]
        [StringLength(128)]
        public string Password { get; set; }

        public Nullable<DateTime> PasswordChangedDate { get; set; }

        [Required]
        [StringLength(128)]
        public string PasswordSalt { get; set; }

        [StringLength(128)]
        public string PasswordVerificationToken { get; set; }

        public Nullable<DateTime> PasswordVerificationTokenExpirationDate { get; set; }

        //public IList<OAuthMembership> OAuthMemberships { get; set; }

    }
}
